Programming with QuickTime VR

| Previous | Chapter contents | Chapter top | Section top | Next |

QTVRSetViewState

You can use the QTVRSetViewState function to set the value of a view state.

OSErr QTVRSetViewState (
                     QTVRInstance qtvr,
                     QTVRViewStateType viewStateType,
                     UInt16 state);
qtvr
An instance of a QuickTime VR movie.
viewStateType
A view state type. See "View State Types" for a description of the available view state types.
state
The desired value of the specified type of view state.
function result
A result code.

DESCRIPTION

The QTVRSetViewState function sets the value of the view state of the object node specified by the qtvr parameter that has the type specified by the viewStateType parameter to the value specified by the state parameter.

SPECIAL CONSIDERATIONS

QTVRSetViewState is valid only for object nodes.

SEE ALSO

Use QTVRGetViewState (link) to get the value of a view state.


© 1997 Apple Computer, Inc.

| Previous | Chapter contents | Chapter top | Section top | Next |